﻿using Microsoft.EntityFrameworkCore;
using Nxg.Blog.Core.Documents;

namespace Nxg.Blog.Core {
    public class DataContext : DbContext {

        public DataContext (DbContextOptions<DataContext> options) : base (options) {

        }

        public DbSet<Author> Author { get; set; }

        public DbSet<BlogComment> Comment { get; set; }

        public DbSet<BlogPost> Post { get; set; }

        public DbSet<Documents.Tag> Tag { get; set; }

        public DbSet<SpamHash> SpanHash { get; set; }

        public DbSet<Category> Category { get; set; }

    }
}